package cn.riacode.flurry.core
{

    /**
     * border的上、右、下、左的宽度
     * @author vivi
     *
     */
    public class BorderRegion
    {
        /**
         * border 上边的宽度，单位px.
         */
        private var _top:Number;
        /**
         * border 右边的宽度，单位px.
         */
        private var _right:Number;
        /**
         * border 下边的宽度，单位px.
         */
        private var _bottom:Number;
        /**
         * border 左边的宽度，单位px.
         */
        private var _left:Number;

        public function BorderRegion(top:Number, right:Number, bottom:Number, left:Number)
        {
            _top=top;
            _right=right;
            _bottom=bottom;
            _left=left;
        }

        /**
         * border 左边的宽度，单位px.
         */
        public function get left():Number
        {
            return _left;
        }

        public function set left(v:Number):void
        {
            _left=v;
        }

        /**
         * border 下边的宽度，单位px.
         */
        public function get bottom():Number
        {
            return _bottom;
        }

        public function set bottom(v:Number):void
        {
            _bottom=v;
        }

        /**
         * border 右边的宽度，单位px.
         */
        public function get right():Number
        {
            return _right;
        }

        public function set right(v:Number):void
        {
            _right=v;
        }

        /**
         * border 上边的宽度，单位px.
         */
        public function get top():Number
        {
            return _top;
        }

        public function set top(v:Number):void
        {
            _top=v;
        }

    }
}